import java.util.Scanner;
public class MainSystem {
    public static void main(String[] args) {
        Function fk = new Function();
        Scanner sc = new Scanner(System.in);
        int q;
        do {
            System.out.println("--------机场离港系统--------");
            System.out.println("-----（1）购票--------\n" +
                    "请输入您需要的服务（编号）");
            q = sc.nextInt();
            if (q > 1|| q <0) {
                System.out.println("输入无效请重新输入！");
                continue;
            }
            switch (q) {
                case 1: {
                    fk.BuyTicket();;//添加图书
                    break;
                }
            }

        }while (q!=0);

    }
}
